package com.wx.gof.pattern.behavioral.iterator;

/**
 * @ClassName CourseAggregate
 * @Author wx
 * @Description 课程集合接口
 * @Date 2018-12-12-22:41
 */
public interface CourseAggregate {
    /**
     * @methodName: addCourse
     * @author: wx
     * @description: 添加课程
     * @param course
     * @date: 2018/12/12
     * @return: void
     */
    void addCourse(Course course);

    /**
     * @methodName: removeCourse
     * @author: wx
     * @description: 删除课程
     * @param course
     * @date: 2018/12/12
     * @return: void
     */
    void removeCourse(Course course);

    /**
     * @methodName: getCourseIterator
     * @author: wx
     * @description: 获取课程迭代器
     * @param
     * @date: 2018/12/12
     * @return: com.wx.gof.pattern.behavioral.iterator.CourseIterator
     */
    CourseIterator<Course> getCourseIterator();
}
